<?php
/**
 * Created by PhpStorm.
 * User: seven
 * Date: 2015/12/22
 * Time: 16:43
 */
return array(
    'controllers'  => [
        'invokables' => [
            'Album\Controller\Album' => 'Album\Controller\AlbumController',
        ],
    ],
    'router'       => [
        'routes' => [
            'album' => [
                'type'    => 'segment',
                'options' => [
                    'route'       => '/album[/:action][/:id]',
                    'constraints' => [
                        'action' => '[a-zA-Z][a-zA-z0-9_-]*',
                        'id'     => '[0-9]+'
                    ],
                    'defaults'    => [
                        'controller' => 'Album\Controller\Album',
                        'action'     => 'index',
                    ]
                ]
            ]
        ]
    ],
    'view_manager' => [
        'template_path_stack' => [
            'album' => __DIR__ . '/../view',
        ],
    ],
    'translator' => array(
        'locale' => 'zh_CN',
        'translation_file_patterns' => array(
            array(
                'type'     => 'gettext',
                'base_dir' => __DIR__ . '/../language',
                'pattern'  => '%s.mo',
            ),
        ),
    )
);